package com.wzdigit.wms.wms.service.core.ctrn;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wzdigit.wms.basic.domain.transfer.CtnrLoading;
import com.wzdigit.wms.basic.mapper.core.transfer.CtnrLoadingMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 装柜单 服务实现类
 * </p>
 *
 * @author 
 * @since 2021-03-05
 */
@Service
@Slf4j
public class CtnrLoadingService  {

    @Autowired
    private CtnrLoadingMapper ctnrLoadingMapper;


    /**
     * 根据发货单明细查询装柜单信息
     * @param gdnDtlId
     * @return
     */
    public CtnrLoading selectByGdnDtlId(Integer gdnDtlId) {

        //创建类型的条件构造器
        QueryWrapper<CtnrLoading> wrapper = new QueryWrapper<>();
        wrapper.eq("GDN_DTL_ID", gdnDtlId);
        CtnrLoading ctnrLoading = ctnrLoadingMapper.selectOne(wrapper);
        return ctnrLoading;
    }
}
